package com.hwadee.springboot_lx.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Entity
@Table(name = "class")
public class Class {
    @Id
    @Column(name = "ClassID", nullable = false)
    private Integer id;

    @Column(name = "ClassName", length = 100)
    private String className;

    @Column(name = "StudentCount", nullable = false)
    private Integer studentCount;

    @Column(name = "Semester", nullable = false, length = 100)
    private String semester;

    @Column(name = "Subject", length = 50)
    private String subject;

}